//
//  MLDropdownView+Convenient.h
//  MSHandbook
//
//  Created by molon on 14/11/12.
//  Copyright (c) 2014年 molon. All rights reserved.
//

#import "MLDropdownView.h"

#define kDefaultHideAfterDelay 2.0f

//for viewcontroller
#define SHOW_RED_TIPS(o) [MLDropdownView showRedInView:self.view message:(o) andTapBlock:nil];
#define SHOW_GREEN_TIPS(o) [MLDropdownView showGreenInView:self.view message:(o) andTapBlock:nil];
#define SHOW_GRAY_TIPS(o) [MLDropdownView showGrayInView:self.view message:(o) andTapBlock:nil];

#define SHOW_WINDOW_RED_TIPS(o) [MLDropdownView showRedInView:self.view.window message:(o) andTapBlock:nil];
#define SHOW_WINDOW_GREEN_TIPS(o) [MLDropdownView showGreenInView:self.view.window message:(o) andTapBlock:nil];
#define SHOW_WINDOW_GRAY_TIPS(o) [MLDropdownView showGrayInView:self.view.window message:(o) andTapBlock:nil];


@interface MLDropdownView (Convenient)

+ (MLDropdownView*)showRedInView:(UIView*)view message:(NSString*)message andTapBlock:(void (^)())didTapBlock;
+ (MLDropdownView*)showGreenInView:(UIView*)view message:(NSString*)message andTapBlock:(void (^)())didTapBlock;
+ (MLDropdownView*)showGrayInView:(UIView*)view message:(NSString*)message andTapBlock:(void (^)())didTapBlock;

@end
